terminal.cc (12334:e0ab29a34764) | terminal.cc (12693:4db8d6442b44) |
---|---|
1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 139 unchanged lines hidden (view full) --- 148 149 while (!listener.listen(port, true)) { 150 DPRINTF(Terminal, 151 ": can't bind address terminal port %d inuse PID %d\n", 152 port, getpid()); 153 port++; 154 } 155 | 1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 139 unchanged lines hidden (view full) --- 148 149 while (!listener.listen(port, true)) { 150 DPRINTF(Terminal, 151 ": can't bind address terminal port %d inuse PID %d\n", 152 port, getpid()); 153 port++; 154 } 155 |
156 int p1, p2; 157 p2 = name().rfind('.') - 1; 158 p1 = name().rfind('.', p2); 159 ccprintf(cerr, "Listening for %s connection on port %d\n", 160 name().substr(p1+1,p2-p1), port); | 156 ccprintf(cerr, "%s: Listening for connections on port %d\n", 157 name(), port); |
161 162 listenEvent = new ListenEvent(this, listener.getfd(), POLLIN); 163 pollQueue.schedule(listenEvent); 164} 165 166void 167Terminal::accept() 168{ --- 177 unchanged lines hidden --- | 158 159 listenEvent = new ListenEvent(this, listener.getfd(), POLLIN); 160 pollQueue.schedule(listenEvent); 161} 162 163void 164Terminal::accept() 165{ --- 177 unchanged lines hidden --- |