#include #include #include #include #include #include #include #include #include /** * @jmeier_assignment3 * @author Joshua Meier * @version 1.0 * * @section LICENSE * * This program is free software;...

1 answer below »
#include
#include
#include
#include
#include
#include
#include
#include
#include
/**
* @jmeier_assignment3
* @author Joshua Meier < XXXXXXXXXX>
* @version 1.0
*
* @section LICENSE
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details at
* http://www.gnu.org/copyleft/gpl.html
*
* @section DESCRIPTION
*
* This contains the main function. Add further description here....
*/
/**
* main function
*
* @param argc Number of arguments
* @param argv The argument list
* @return 0 EXIT_SUCCESS
*/
using namespace std;
int main(int argc, char **argv)
{
/*Start Here*/
int listening = socket(AF_INET, SOCK_STREAM, 0);
if(listening == -1)
{
cerr << "Can't create a socket!";
return -1;
}
socketadd_in ;
bind(listening, (struct sockaddr*)&server, sizeof(server));
return 0;
}
Answered 6 days AfterMay 04, 2021

Solution

Pulkit Aggarwal answered on May 10 2021
23 Votes

#include
#include
#include
#include
#include
#include
#include
#include...

Submit New Assignment

Copy and Paste Your Assignment Here