Skip to content

UFSEC/SocketTutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SocketTutorial

A Socket Tutorial in Python and Java. While I've included files for setting up servers in Python and Java, and clients in Python and Java, I intend to only go over a Python server with a Java client. Feel free to play with these as you will.

Read the corresponding web version here.

##Tutorial:

  1. What are sockets?
  2. Connection Process: http://www.tutorialspoint.com/images/perl_socket.jpg
  3. Server Sockets: Python
    • User programs' port numbers should be >1000
    • creation, bind, listen, accept, , close
  4. [Client] Sockets: Java
    • HOST and PORT must match the server
    • creation, connection, , close
  5. Sending and receiving data to/from a host: echoServer
  6. Sending and receiving data to/from a host: chat service
  7. More with Sockets
    • Threading: see Baker's presentation next week
    • ObjectOutputStream and ObjectInputStream
  8. Examples

####References

About

Java/Python Socket Tutorial (10/15/2014)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published