File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,12 @@ struct httpserver_ska
355355
356356 httpserver_ska (): addr(0x0 ) { }
357357
358- httpserver_ska (const httpserver_ska& o): addr(o.addr) { }
358+ httpserver_ska (const httpserver_ska& o):
359+ addr (o.addr),
360+ ip (o.ip),
361+ port (o.port)
362+ {
363+ }
359364
360365 bool operator <(const httpserver_ska& o) const
361366 {
@@ -372,6 +377,16 @@ struct httpserver_ska
372377 httpserver_ska& operator =(const httpserver_ska& o)
373378 {
374379 this ->addr = o.addr ;
380+ this ->ip = o.ip ;
381+ this ->port = o.port ;
382+ return *this ;
383+ }
384+
385+ httpserver_ska& operator =(struct sockaddr * addr)
386+ {
387+ this ->addr = addr;
388+ this ->ip = get_ip_str_new (addr);
389+ this ->port = get_port (addr);
375390 return *this ;
376391 }
377392
You can’t perform that action at this time.
0 commit comments