AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Mar 22, 2002, 21:46   #1
»
 
z0mbie's Avatar
 
Join Date: Jan 2002
Posts: 776
Rep Power: 7
Reputation: 10
Send a message via ICQ to z0mbie
Question sockets & port 23

..
struct sockaddr_in Saddr;
SOCKET Sock=socket(AF_INET,SOCK_STREAM,0);
Saddr.sin_family=AF_INET;
Saddr.sin_port=htons(23);
//dal'she connect i t.d...
recv(Sock,buffer,sizeof(buffer),0);

pri podklyuchenii k portam 25,80 i t.d. poluchayu normal'nыy text a na 23 - "_¤_¤_¤#_¤'_¤$+" ..
v chem delo ? port 23 chem-to otlichaetsya ot drugix ?
z0mbie is offline   Reply With Quote Quote selected
Old Mar 22, 2002, 22:52   #2
Консервативный Демагог
 
VX's Avatar
 
Join Date: Jan 2002
Location: Кавказская Албания
Posts: 889
Rep Power: 7
Reputation: 10
Post

net nichem ne otlicahetsa, u menja toje taka problema bila s nekotoimi serverra, ocen' mojet bit sto server compressit vse danni kotorie posilaet (naprimer rabotaet mod_gzip).
ili vojmojno cto nujno vkluchit' binary mode ...
__________________
Праздник к нам приходит...

|^^^^^^^^^'''^\| ||\__
| ВОДКА-ВОДКА | ||','''|'''''''\_____,_
| _..... _ | ||_ _|'__|_____||.........| |
'(@)'(@)'(@)''''''''''''''''''''''*|(@)""""|(@)*
VX is offline   Reply With Quote Quote selected
Old Mar 23, 2002, 00:31   #3
»
 
z0mbie's Avatar
 
Join Date: Jan 2002
Posts: 776
Rep Power: 7
Reputation: 10
Send a message via ICQ to z0mbie
Post

connectyus' ya k freenetu..
obыchnыm telnet clientom vse OK..
i kak vklyuchit' binary mode ?
z0mbie is offline   Reply With Quote Quote selected
Old Mar 23, 2002, 05:41   #4
Консервативный Демагог
 
VX's Avatar
 
Join Date: Jan 2002
Location: Кавказская Албания
Posts: 889
Rep Power: 7
Reputation: 10
Post

Rasskaji po podrobnie..(mojesh po email)..
cto ti konkretno posilaesh..da i eshe poproboi WSAsend WSArecv esli ti pod windami...i eshe rfc po telnetu.
__________________
Праздник к нам приходит...

|^^^^^^^^^'''^\| ||\__
| ВОДКА-ВОДКА | ||','''|'''''''\_____,_
| _..... _ | ||_ _|'__|_____||.........| |
'(@)'(@)'(@)''''''''''''''''''''''*|(@)""""|(@)*
VX is offline   Reply With Quote Quote selected
Old Mar 23, 2002, 23:03   #5
»
 
z0mbie's Avatar
 
Join Date: Jan 2002
Posts: 776
Rep Power: 7
Reputation: 10
Send a message via ICQ to z0mbie
Post

Quote:
Originally posted by VX:
Rasskaji po podrobnie..(mojesh po email)..
cto ti konkretno posilaesh..da i eshe poproboi WSAsend WSArecv esli ti pod windami...i eshe rfc po telnetu.
nu dlya nachala xochu xotya bы poluchit' "welcome ... login: " :]
z0mbie is offline   Reply With Quote Quote selected
Old Mar 25, 2002, 23:04   #6
Бакалавр
 
Join Date: Mar 2002
Location: Detroit, MI, USA
Posts: 482
Rep Power: 7
Reputation: 10
Post

Hi,
I believe, that the problem is, that you didn't implement Telnet protocol.
Let me inform you, that Telnet does not just assume sending and recieveving text messages. It contains much more commands (I mean protocol commands)...
I believe, in your case, the server on the other side configured to send some escape sequences to configure client (For example to configure session parameters such as color).
My suggestion will be to take a look at Telnet RFC (Unfortunatelly, I don't remember the number).

Regards,
Hovhannes
__________________
Hovhannes Tumanyan,
CISSP
Tumanyan is offline   Reply With Quote Quote selected
Old Apr 23, 2002, 05:33   #7
Дошкольник
 
Join Date: Mar 2002
Location: Yerevan
Posts: 111
Rep Power: 7
Reputation: 10
Post

А по мне, скорее 80 ненормален, чем 23. Было бы логичне было встретить бинарный application layer protocol, чем ascii по стандарту telnet. HTTP, FTP, SNTP... текстовые, и вообще на человека расчитаны, а не на машину...
_Давид is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:54.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link