Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of cc3000_hostdriver_mbedsocket by
Diff: Socket/TCPSocketServer.h
- Revision:
- 5:245ac5b73132
- Parent:
- 0:615c697c33b0
--- a/Socket/TCPSocketServer.h Sat Sep 21 15:01:05 2013 +0000 +++ b/Socket/TCPSocketServer.h Thu Sep 26 19:50:37 2013 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2012 mbed.org, MIT License +/* Copyright (C) 2013 mbed.org, MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Software without restriction, @@ -28,20 +28,20 @@ /** Instantiate a TCP Server. */ TCPSocketServer(); - + /** Bind a socket to a specific port. \param port The port to listen for incoming connections on. \return 0 on success, -1 on failure. */ int bind(int port); - + /** Start listening for incoming connections. \param backlog number of pending connections that can be queued up at any one time [Default: 1]. \return 0 on success, -1 on failure. */ int listen(int backlog=1); - + /** Accept a new connection. \param connection A TCPSocketConnection instance that will handle the incoming connection. \return 0 on success, -1 on failure.