Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to list dirs and files on a remote machine? Pin
Hamid_RT28-May-06 19:25
Hamid_RT28-May-06 19:25 
AnswerRe: How to list dirs and files on a remote machine? Pin
followait28-May-06 19:35
followait28-May-06 19:35 
GeneralRe: How to list dirs and files on a remote machine? Pin
Hamid_RT28-May-06 19:48
Hamid_RT28-May-06 19:48 
AnswerRe: How to list dirs and files on a remote machine? Pin
ThatsAlok28-May-06 20:13
ThatsAlok28-May-06 20:13 
GeneralRe: How to list dirs and files on a remote machine? Pin
followait28-May-06 20:18
followait28-May-06 20:18 
GeneralRe: How to list dirs and files on a remote machine? Pin
ThatsAlok28-May-06 21:38
ThatsAlok28-May-06 21:38 
QuestionDifference between Socket and Port Pin
zahid_ash28-May-06 18:50
zahid_ash28-May-06 18:50 
AnswerRe: Difference between Socket and Port Pin
bob1697228-May-06 19:21
bob1697228-May-06 19:21 
From MSDN:

"Definition of a Socket
A socket is a communication endpoint — an object through which a Windows Sockets application sends or receives packets of data across a network. A socket has a type and is associated with a running process, and it may have a name. Currently, sockets generally exchange data only with other sockets in the same “communication domain,” which uses the Internet Protocol Suite.
"

"Port
A port identifies a unique process for which a service can be provided. In the present context, a port is associated with an application that supports Windows Sockets. The idea is to identify each Windows Sockets application uniquely so you can have more than one Windows Sockets application running on a machine at the same time.
"
End of MSDN quotes.

Normally you don't choose the port to use unless you are a server, and that is only the listener port that is defined. You do however, have a choice to let the server listen on a particualr network if your box is multi-homed (multiple NICs or network cards). This is called "Binding". If your providing a common well known service, it is customary to listen on the port conventionally used for that service. Lets say port 25 for SMTP. When your "accept" returns, the socket connection will actually use a different port for it's communication with the client (usually the next available port) from that point forward leaving the common port to listen for further connection attempts via additional calls to one of the forms of "accept" available.

The client usually does not pick the port it will use on it's end. It usually states which family, port, and address it wants to connect to. This means it is saying it wants to connect to port 25 on the server at address whatever. The local port used is arbitrary and is usually just the next available port and in no way required to be any specific port.


GeneralRe: Difference between Socket and Port Pin
zahid_ash28-May-06 19:27
zahid_ash28-May-06 19:27 
GeneralRe: Difference between Socket and Port Pin
bob1697228-May-06 21:05
bob1697228-May-06 21:05 
GeneralRe: Difference between Socket and Port Pin
Justin Tay29-May-06 2:18
Justin Tay29-May-06 2:18 
Questionsplitter dialogs Pin
anhtuanbhld128-May-06 18:36
anhtuanbhld128-May-06 18:36 
QuestionHow to realize Multi-Chat application? Pin
bruspark28-May-06 18:13
bruspark28-May-06 18:13 
AnswerRe: How to realize Multi-Chat application? Pin
bob1697228-May-06 18:49
bob1697228-May-06 18:49 
GeneralRe: How to realize Multi-Chat application? Pin
bruspark28-May-06 19:22
bruspark28-May-06 19:22 
GeneralRe: How to realize Multi-Chat application? Pin
bob1697228-May-06 20:37
bob1697228-May-06 20:37 
GeneralRe: How to realize Multi-Chat application? Pin
bruspark29-May-06 18:12
bruspark29-May-06 18:12 
QuestionHow to add WndPRoc function to an windows Service application Pin
bmurali28-May-06 17:49
bmurali28-May-06 17:49 
QuestionHow to get the menu of the ChildFrame in MDI Pin
raycadarena28-May-06 16:23
raycadarena28-May-06 16:23 
AnswerRe: How to get the menu of the ChildFrame in MDI [modified] Pin
bob1697228-May-06 17:03
bob1697228-May-06 17:03 
GeneralRe: How to get the menu of the ChildFrame in MDI [modified] Pin
raycadarena28-May-06 20:07
raycadarena28-May-06 20:07 
GeneralRe: How to get the menu of the ChildFrame in MDI [modified] Pin
bob1697229-May-06 7:34
bob1697229-May-06 7:34 
QuestionHow i make a scroll bar to scroll down by itself? Pin
Immunity1828-May-06 14:14
Immunity1828-May-06 14:14 
AnswerRe: How i make a scroll bar to scroll down by itself? Pin
bob1697228-May-06 14:30
bob1697228-May-06 14:30 
GeneralRe: How i make a scroll bar to scroll down by itself? [modified] Pin
Immunity1828-May-06 14:36
Immunity1828-May-06 14:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.