sockets and ports -- bind() 
Author Message
 sockets and ports -- bind()

can some one please just give me some example code as to how I could
on a unix/linux system open up a port (9812) and when some one telnet's
into the machines ip on port 9812 it prints out "wow, it works"

Thank you.



Sat, 13 Jul 2002 03:00:00 GMT  
 sockets and ports -- bind()


Quote:
>can some one please just give me some example code as to how I could
>on a unix/linux system open up a port (9812) and when some one telnet's
>into the machines ip on port 9812 it prints out "wow, it works"

Unfortunately C doesn't have any socket support or support for any other
form of networking so this is not possible. Many OSs or compilers do
provide such support however the details are specific to those systems.
For example both Windows and Unix systems provide socket library calls
but the details are not identical. You'll have to ask in relevant
compiler/OS related newsgroup. For Unix that would be comp.unix.programmer,
there is a slocket related newsgroup for Windows called
comp.os.ms-windows.programmer.tools.winsock and there are various
programming newsgroups for other OSs.

--
-----------------------------------------


-----------------------------------------



Sat, 13 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Socket binding on 2 IP address

2. How to bind sockets in Solaris (correction)

3. How to bind sockets address in Solaris?

4. TCP/IP sockets: runtime bind() error: invalid argument

5. Sockets Programming in C, a problem with bind

6. binding raw sockets?

7. Binding server socket !!!

8. socket binding

9. Bound sockets

10. C# Sockets: Send ignores bound LocalEndPoint with muliple network adapters

11. Getting the system generated port value from bind

12. How to bind with 2 ports in a UDP socket?

 

 
Powered by phpBB® Forum Software