Many changes to ServerCore
This commit is contained in:
1 parent
6969ef0fbb
commit
d445834af6
83 files changed
+666
-756
No files matched your search
+2
-2
@@ -19,10 +19,10 @@ namespace core {
|
||||
inotify_rm_watch(getDescriptor(), wd);
|
||||
}
|
||||
|
||||
void INotify::onDataReceived(char *buffer, int len) {
|
||||
void INotify::onDataReceived(coreutils::ZString buffer) {
|
||||
const struct inotify_event *event;
|
||||
char *ptr;
|
||||
for (ptr = buffer; ptr < buffer + len;
|
||||
for (ptr = buffer.getData(); ptr < buffer.getData() + buffer.getLength();
|
||||
ptr += sizeof(struct inotify_event) + event->len) {
|
||||
event = (const struct inotify_event *) ptr;
|
||||
|
||||
|
||||
Reference in new issue
Block a user